package cn.wolfcode.luowowo.member.service;

import cn.wolfcode.luowowo.common.exception.LogicException;
import cn.wolfcode.luowowo.member.domain.UserInfo;

import java.util.List;

public interface IUserInfoService {
    UserInfo get(Long id);

    //检查手机号是否存在
    //true存在,flase不存在
    boolean checkPhone(String phone);

    //用户短信发送
    void sendVerifyCode(String phone);

    void userRegist(String phone, String nickname,
                    String password, String rpassword, String verifyCode) throws LogicException;

    String userLogin(String username, String password)throws LogicException;

    //创建用户集合
    List<UserInfo> list();

}
